package com.hqd.ch03.v26.tx.transaction;

/**
 * 保存点管理接口
 */
public interface SavepointManager {
    /**
     * 创建保存点
     *
     * @return
     */
    Object createSavepoint();

    /**
     * 回滚到对应的保存点
     *
     * @param savepoint
     */
    void rollbackToSavepoint(Object savepoint);

    /**
     * 释放保存点
     *
     * @param savepoint
     */
    void releaseSavepoint(Object savepoint);
}
